package com.cloudm.technician.ui.modules.cloudm_box.machine

import com.cloudm.technician.data.model.MachineInfo
import com.cloudm.technician.ui.base.BaseListView
import com.cloudm.technician.ui.base.BasePresenter

/**
 * 作者: wesley
 * 时间: 2017/12/20
 * 描述: 机器协议接口
 */
interface MachineContract {

    interface View : BaseListView<ArrayList<MachineInfo>> {

        fun onMachineTypeTitleReceive()

        fun onMachineBrandTitleReceive()

        fun onMachineModelTitleReceive()

        fun scrollToPosition(position: Int)

    }

    interface Presenter : BasePresenter {

        fun buildTitleByFlag(flag: Int)

        fun loadData(flag: Int, typeId: Int, brandId: Int, modelId: Int)

        fun loadMachineTypeInfo(typeId: Int)

        fun loadMachineBrandInfo(brandId: Int)

        fun loadMachineModelInfo(typeId: Int, brandId: Int, modelId: Int)

    }
}